package com.epam.submenu.submenu2;

import java.util.ArrayList;
import java.util.List;





import com.epam.menu.Menu;
import com.epam.menu.MenuItem;
import com.epam.submenu.submenu2.submenu2_1.*;

public class Rank1 extends MenuItem {
	private final Menu subMenu;
	
	public Rank1() {
		super("First-rank","1");
		List<MenuItem> items = new ArrayList<MenuItem>();
		items.add(new LazuriteMenu());
		items.add(new MalachiteMenu());
		items.add(new TurquoiseMenu());
		items.add(new GoBack2_1());
		subMenu = new Menu(items);
	}

	@Override
	public boolean execute() {
		System.out.println("first-rank comand");
		subMenu.run();
		return true;
	}

}
